package com.jiepuxun.demo.kafka;

import com.jiepuxun.demo.common.Ret;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/kafka")
@RestController
public class KafkaController {

    @Autowired
    private KafkaService service;

    @PostMapping("/set/data")
    public Ret setData(){
        System.out.println("=====================set data======================");
        service.send("test");
        return Ret.ok();
    }
}
